package com.iw.sms.service;

import org.springframework.stereotype.Component;

import com.iw.sms.quartz.AutoReplyQuartz;
import com.iw.sms.quartz.SmsConfig;

@Component
public class AutoReplyService {

	public boolean startReply() {
		AutoReplyQuartz.isRun = true;
		SmsConfig.setProperty(SmsConfig.AUTO_REPLY_RUN, true);
		return true;
	}

	public boolean stopReply() {
		AutoReplyQuartz.isRun = false;
		SmsConfig.setProperty(SmsConfig.AUTO_REPLY_RUN, false);
		return true;
	}

}
